/*************************************************************************
 Copyright (C) Unpublished Unis Software, Inc. All rights reserved.
 Unis Software, Inc., Confidential and Proprietary.

 This software is subject to copyright protection
 under the laws of the Public of China and other countries.

 Unless otherwise explicitly stated, this software is provided
 by Unis "AS IS".
 *************************************************************************/
package com.unis.service.workplan;

import java.util.List;

import com.unis.model.BaseModel;
import com.unis.model.workplan.Workplan;

/**
 * @author Administrator (email:xxh@163.com)
 * @since 2013-03-20
 */
public interface WorkplanService {

    /****************************************
     * Insert a instace of Workplan
     ****************************************/
    void insert(Workplan workplan) throws Exception;

    /****************************************
     * Insert instaces of Workplan
     ****************************************/
    void batchInsert(Workplan workplan) throws Exception;

    /****************************************
     * Delete a instace of Workplan
     ****************************************/
    void delete(Workplan workplan) throws Exception;

    /****************************************
     * Delete instaces of Workplan
     ****************************************/
    void batchDelete(Workplan workplan) throws Exception;

    /****************************************
     * Update a instace of Workplan
     ****************************************/
    void update(Workplan workplan) throws Exception;

    /****************************************
     * Query instaces of Workplan
     ****************************************/
    List<BaseModel> queryAsList(Workplan workplan) throws Exception;

    /****************************************
     * Query a instaces of Workplan
     ****************************************/
    BaseModel queryAsObject(Workplan workplan) throws Exception;
}
